package core;

public class Constants {
	
	public static final class URL {
		public static final String sell = "https://www.cryptsy.com/json.php?file=ajaxsellorderslistv2_%s.json";
		public static final String buy = "https://www.cryptsy.com/json.php?file=ajaxbuyorderslistv2_%s.json";
		public static final String his = "https://www.cryptsy.com/json.php?file=ajaxtradehistory_%s.json";
		public static final String chart = "https://www.cryptsy.com/json/ajaxtradechart_%s.json";
		public static final String btc2cny = "https://bter.com/api/1/ticker/btc_cny";
		public static final String ltc2cny = "https://bter.com/api/1/ticker/ltc_cny";
		public static final String xpm2cny = "https://bter.com/api/1/ticker/xpm_cny";
		public static final String markets = "http://pubapi.cryptsy.com/api.php?method=marketdatav2";
		public static final String market = "http://pubapi.cryptsy.com/api.php?method=singlemarketdata&marketid=%s";
		
		public static final String mtgoxBtcTicker = "http://data.mtgox.com/api/1/BTCCNY/ticker_fast";
		public static final String mtgoxLtcTicker = "http://data.mtgox.com/api/1/LTCCNY/ticker_fast";
	}
	
	public static final class StepMap {
		public static final String name = "step:map";
		public static final String tradeOrder = "trade:order";
		public static final String tradeChart = "trade:chart";
		public static final String marketInfo = "market:info";
	}
	
	public static final class PriceMap {
		public static final String name = "price:map";
		public static final String btcPrice = "btc:price";
		public static final String ltcPrice = "ltc:price";
	}
	
	public static final class MarketInfoMap {
		public static final byte[] name = "market:info".getBytes();
		public static final String keyPrefix = "market:";
	}
	
	public static final class HisOrdersMap {
		public static final String name = "orders:his";
		public static final String keyPrefix = "market:";
	}
	
	public static final class SellOrdersMap {
		public static final String name = "orders:sell";
		public static final String keyPrefix = "market:";
	}
	
	public static final class BuyOrdersMap {
		public static final String name = "orders:buy";
		public static final String keyPrefix = "market:";
	}
	
	public static final class MarketChartMap {
		public static final String name = "map:chart";
		public static final String keyPrefix = "market:";
	}
	
	public static final byte[] allMarkets = "markets:all".getBytes();
	public static final String marketIds = "market:ids";
	
	public static final String NUMBER_FORMAT_PATTERN = "0.00000000";
	
}
